<?php

namespace app\helper;

class Helper
{
    public static function json($data = [],$code = 0,$msg = '')
    {
        return json_encode(['code' => $code,'msg' => $msg,'data' => $data]);
    }

    public static function returnJson($data)
    {
        die(json_encode($data,JSON_UNESCAPED_UNICODE));
    }
}